package com.dhcc.bpm.business.papc.mapper;

import com.dhcc.bpm.business.papc.entity.ChnlInfo;
import com.dhcc.bpm.business.papc.vo.ChnlInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 中间业务渠道信息表  Mapper 接口
 *
 * @author liuzhao
 * @since 2020-05-16
 */
public interface ChnlInfoMapper extends BaseMapper<ChnlInfo> {

    /**
     * @param page
     * @param chnlInfo
     * @return java.util.List<com.dhcc.bpm.business.papc.vo.ChnlInfoVO>
     * @Description 自定义分页
     * @Author liuzhao
     * @Date 2020/5/25 9:35
     **/
    List<ChnlInfoVO> selectChnlInfoPage(IPage page, ChnlInfoVO chnlInfo);

    /**
     * @param id
     * @return com.dhcc.bpm.business.papc.entity.ChnlInfo
     * @Description 详情
     * @Author liuzhao
     * @Date 2020/5/25 9:36
     **/
    ChnlInfo selectChnlInfoById(Long id);

    /**
     * @param chnlInfo
     * @return int
     * @Description 新增
     * @Author liuzhao
     * @Date 2020/5/25 9:37
     **/
    int save(ChnlInfo chnlInfo);

    /**
     * @param chnlInfo
     * @return int
     * @Description 更新
     * @Author liuzhao
     * @Date 2020/5/25 9:38
     **/
    int update(ChnlInfo chnlInfo);

    /**
     * @param ids
     * @return int
     * @Description 删除
     * @Author liuzhao
     * @Date 2020/5/25 9:38
     **/
    int deleteChnlInfoByIds(String[] ids);

    /**
     * @param chnlInfo
     * @return java.util.List<com.dhcc.bpm.business.papc.entity.ChnlInfo>
     * @Description 查询全部信息
     * @Author liuzhao
     * @Date 2020/5/25 9:39
     **/
    @Select("select * from zjyw_chnl_info")
    List<ChnlInfo> selectChnlInfoAll(ChnlInfo chnlInfo);
}
